package guru.util.ObjectCall.demo;

import guru.util.ObjectCall.ObjectCall;

import java.util.Dictionary;
import java.util.Hashtable;

public class Prueba{


	public static void main(String argv[]) {


	Dictionary map=new Hashtable();
	map.put("kk",new Prueba());
ObjectCall call=null;

	try{
		call=new ObjectCall("kk.getTest()",map);

	}
	catch(Exception e){
		System.out.println("===>"+e);
	}

	if(call!=null)
		System.out.println("===>"+call.getReturn());





	}

	private String txt="hola";

	public Prueba(){
		txt="hola2";
	}


	public String toString(){
		return(txt);
	}


	public String getTest(){
		return("Hola Mundo!");
	}


}